package com.charging.system.domain;

import java.math.BigDecimal;

import com.charging.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charging.common.annotation.Excel;

/**
 * 充值记录对象 kx_recharge_record
 *
 * @author charging
 * @date 2024-04-19
 */
public class KxRechargeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long rechargeRecordId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;
    /** 充值用户 */
    @Excel(name = "充值用户")
    private String userName;

    /** 电卡号 */
    @Excel(name = "电卡号")
    private String cardNo;

    /** 电卡号 */
    @Excel(name = "电卡号")
    private Long cardId;

    /** 充值方案id */
    @Excel(name = "充值方案id")
    private Long rechargeSchemeId;

    /** 交易状态 */
    @Excel(name = "交易状态")
    private Integer tranStatus;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private Integer tranType;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private BigDecimal balance;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    private BigDecimal give;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private String dates;

    public String getDates() {
        return dates;
    }

    public void setDates(String dates) {
        this.dates = dates;
    }

    public void setRechargeRecordId(Long rechargeRecordId)
    {
        this.rechargeRecordId = rechargeRecordId;
    }

    public Long getRechargeRecordId()
    {
        return rechargeRecordId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCardId(Long cardId)
    {
        this.cardId = cardId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Long getCardId()
    {
        return cardId;
    }
    public void setRechargeSchemeId(Long rechargeSchemeId)
    {
        this.rechargeSchemeId = rechargeSchemeId;
    }

    public Long getRechargeSchemeId()
    {
        return rechargeSchemeId;
    }
    public void setTranStatus(Integer tranStatus)
    {
        this.tranStatus = tranStatus;
    }

    public Integer getTranStatus()
    {
        return tranStatus;
    }
    public void setTranType(Integer tranType)
    {
        this.tranType = tranType;
    }

    public Integer getTranType()
    {
        return tranType;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setGive(BigDecimal give)
    {
        this.give = give;
    }

    public BigDecimal getGive()
    {
        return give;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rechargeRecordId", getRechargeRecordId())
            .append("userId", getUserId())
            .append("cardId", getCardId())
            .append("rechargeSchemeId", getRechargeSchemeId())
            .append("tranStatus", getTranStatus())
            .append("tranType", getTranType())
            .append("balance", getBalance())
            .append("give", getGive())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
